<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserDetails.ascx.cs" Inherits="Controls_UserDetails" %>
<table cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td colspan="4">
            <asp:Label ID="lblMessage" runat="server" Visible="false"></asp:Label>
        </td>
    </tr>
    <tr>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px;" Width="20%" align="right">
            <asp:Label ID="lblFName" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="30%">
            <asp:TextBox ID="txtFName" runat="server" CssClass="textbox textboxMan" Width="120px" TabIndex="0"></asp:TextBox>
            <asp:RequiredFieldValidator 
                ID="rfvFirstName" 
                runat="server" 
                ControlToValidate="txtFName" 
                Display="None"
                SetFocusOnError="true" 
                ErrorMessage="First Name is mandatory." >First Name is mandatory.
            </asp:RequiredFieldValidator>
        </td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="20%" align="right">
            <asp:Label ID="lblLName" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="30%">
            <asp:TextBox ID="txtLName" runat="server" CssClass="textbox textboxMan" Width="120px" TabIndex="0"></asp:TextBox>
            <asp:RequiredFieldValidator 
                ID="rfvLastName" 
                runat="server" 
                ControlToValidate="txtLName" 
                Display="None"
                SetFocusOnError="true" 
                ErrorMessage="Last Name is mandatory." >Last Name is mandatory.
            </asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="20%" align="right">
            <asp:Label ID="lblEmail" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="30%">
            <asp:TextBox ID="txtEmail" runat="server" CssClass="textbox textboxMan" Width="120px" TabIndex="0"></asp:TextBox>
            <asp:RequiredFieldValidator 
                ID="rfvEmail" 
                runat="server" 
                ControlToValidate="txtEmail" 
                Display="None"
                SetFocusOnError="true" 
                ErrorMessage="EMail is mandatory." >EMail is mandatory.
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator 
                ID="revModTitle" 
                runat="server" 
                ControlToValidate="txtEmail"
                Display="None" 
                ErrorMessage="Please give a valid Email Id" 
                ValidationExpression="^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$" 
                SetFocusOnError="True"></asp:RegularExpressionValidator>
        </td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="20%" align="right">
            <asp:Label ID="lblPhone" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="30%">
            <asp:TextBox ID="txtPhone" runat="server" CssClass="textbox" Width="120px" TabIndex="0" ></asp:TextBox>
            </td>
    </tr>
    <tr>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="20%" align="right">
            <asp:Label ID="lblDOB" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="30%">
            <asp:DropDownList ID="ddlMonth" runat="server" CssClass="select" Width="46px" Font-Size="Smaller" TabIndex="0"></asp:DropDownList>
            <asp:DropDownList ID="ddlDate" runat="server" CssClass="select" Width="35px" Font-Size="Smaller" TabIndex="0"></asp:DropDownList>
            <asp:DropDownList ID="ddlYear" runat="server" CssClass="select" Width="48px" Font-Size="Smaller" TabIndex="0"></asp:DropDownList>
            </td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="20%" align="right">
            <asp:Label ID="lblLocation" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="30%">
            <asp:TextBox ID="txtLocation" runat="server" CssClass="textbox" Width="120px" TabIndex="0" ></asp:TextBox>
            </td>
    </tr>
    <tr>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="20%" align="right">
            <asp:Label ID="lblAboutMe" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="30%">
            <asp:TextBox ID="txtAboutMe" runat="server" TextMode="MultiLine" Height="50" Width="120px" CssClass="textbox" TabIndex="0"></asp:TextBox>
            </td>
         <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="20%" align="right">
            <asp:Label ID="lblHobbies" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" colspan="3" Width="30%">
            <asp:TextBox ID="txtHobbies" runat="server" TextMode="MultiLine" Height="50" Width="120px" CssClass="textbox" TabIndex="0"></asp:TextBox>
            </td>
    </tr>
    <tr><td colspan="4"><hr /></td></tr>
    <tr>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="20%" align="right">
            <asp:Label ID="lblUsername" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="30%">
            <asp:TextBox ID="txtUsername" runat="server" CssClass="textbox textboxMan" Width="120px" TabIndex="0"></asp:TextBox>
           <asp:RequiredFieldValidator 
                ID="rfvUsername" 
                runat="server" 
                ControlToValidate="txtUsername" 
                Display="None"
                SetFocusOnError="true" 
                ErrorMessage="Username is mandatory." >Username is mandatory.
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator 
                ID="revUsername" 
                runat="server" 
                ControlToValidate="txtUsername"
                Display="None" 
                ErrorMessage="Username can have [a-z],[A-Z] or [0-9] and must be 6 to 15 character long." 
                ValidationExpression="([a-zA-Z0-9]{6,15})$" 
                SetFocusOnError="True"></asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="20%" align="right">
            <asp:Label ID="lblPassword" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="30%">
            <asp:TextBox ID="txtPass" runat="server" TextMode="Password" Width="120px" CssClass="textbox textboxMan" TabIndex="0"></asp:TextBox>
           <asp:RequiredFieldValidator 
                ID="rfvPassword" 
                runat="server" 
                ControlToValidate="txtPass" 
                Display="None"
                SetFocusOnError="true" 
                ErrorMessage="Password is mandatory." >Password is mandatory.
            </asp:RequiredFieldValidator>
        </td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="20%" align="right">
            <asp:Label ID="lblRePass" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="30%">
            <asp:TextBox ID="txtRepass" runat="server" TextMode="Password" Width="120px" CssClass="textbox textboxMan" TabIndex="0"></asp:TextBox>
           <asp:RequiredFieldValidator 
                ID="rfvRePassword" 
                runat="server" 
                ControlToValidate="txtRepass" 
                Display="None"
                SetFocusOnError="true" 
                ErrorMessage="Re-Password is mandatory." >Re-Password is mandatory.
            </asp:RequiredFieldValidator>
            <asp:CompareValidator 
                ID="CompareValidator1" 
                runat="server" 
                ControlToValidate="txtPass"
                Display="None" 
                ErrorMessage="Passwords must be same."
                Operator="Equal" 
                Type="String" 
                ControlToCompare="txtRepass" 
                SetFocusOnError="True">Passwords must be same.</asp:CompareValidator>
        </td>
    </tr>
    <tr><td colspan="4"><hr /></td></tr>
    <tr>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="20%" align="right">
            <asp:Label ID="lblLanguage" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="30%">
            <asp:DropDownList ID="ddlLang" runat="server" Width="135px" CssClass="select" Font-Size="Smaller" TabIndex="0"></asp:DropDownList>
            </td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="20%" align="right">
            <asp:Label ID="lblPhoto" runat="server"></asp:Label></td>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" Width="30%">
            <asp:FileUpload ID="fuUser" runat="server" CssClass="textbox" TabIndex="0"></asp:FileUpload>
            </td>
    </tr>
    <tr><td colspan="4"><hr /></td></tr>
    <tr>
        <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px" colspan="4" Width="20%" align="center">
            <asp:ImageButton ID="btnSubmit" runat="server" ImageUrl="~/Images/dj/go.gif" AlternateText="Submit" OnClick="btnGo_Click" />
        </td>
    </tr>
</table>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" Width="178px" />